export type RouteMap = {
  path: string
  name?: string
  redirect?: string | number
  component?: (() => Promise<{ [key: string]: any }>) | string
  meta?: {
    title: string;
    required?: boolean
  }
  children?: Array<RouteMap>|undefined
}

export type MessageTypes = "success" | "info" | "warning" | "error"

export type SucFun = ((id:number) => void) | null
export type CanFun = (() => void) | null

export type ObjectType = Record<string, any>

export type TableColumn = {
  prop: string;
  label: string;
  width?: string;
  fixed?: string;
}

export type ElMessageBoxType = {
  title?: string;
  tips?: string;
  type?: MessageTypes;
  okText?: string;
  cancelText?: string;
}

